package com.campos.common;

import android.location.Location;
import android.media.Image;

import java.nio.ByteBuffer;
import java.util.Date;

public class ImageData{
    public ImageData(Image img){
        ByteBuffer buffer = img.getPlanes()[0].getBuffer();
        data = new byte[buffer.remaining()];
        buffer.get(data);
    }
    public byte[] data;
    public Location pos;
    public Date date;
    public float heading;
    public float pitch;
    public float roll;
}